import adminLayout from '@/layout/admin/index';
import commonLayout from '@/layout/admin/common';
export default [{
	path: '/principal',
	name: 'Principal',
	redirect: '/principal/index',
	meta: {
		title: '用户首页'
	},
	component: adminLayout,
	children: [{
		path: 'project',
		name: 'PrincipalProject',
		redirect: 'project/list',
		component: commonLayout,
		children: [{
			path: 'list',
			name: 'PrincipalProjectList',
			meta: {
				title: '课题管理'
			},
			component: () => import('@/views/principal/project/index')
		}, {
			path: 'audit',
			name: 'PrincipalProjectAudit',
			meta: {},
			component: () => import('@/views/principal/project/audit')
		}, {
			path: 'detail',
			name: 'PrincipalProjectDetail',
			meta: {},
			component: () => import('@/views/principal/project/detail')
		}]
	}, {
		path: 'experiment',
		name: 'PrincipalExperiment',
		redirect: 'experiment/list',
		component: commonLayout,
		children: [{
			path: 'list',
			name: 'PrincipalExperimentList',
			meta: {
				title: '实验管理'
			},
			component: () => import('@/views/principal/experiment/index')
		}, {
			path: 'audit',
			name: 'PrincipalExperimentAudit',
			meta: {},
			component: () => import('@/views/principal/experiment/audit')
		}, {
			path: 'detail',
			name: 'PrincipalExperimentDetail',
			meta: {},
			component: () => import('@/views/principal/experiment/detail')
		}]
	}, {
		path: 'achievement',
		name: 'PrincipalAchievement',
		redirect: 'achievement/list',
		component: commonLayout,
		children: [{
			path: 'list',
			name: 'PrincipalAchievementList',
			meta: {
				title: '成果和总结管理'
			},
			component: () => import('@/views/principal/achievement/index')
		}, {
			path: 'audit',
			name: 'PrincipalAchievementAudit',
			meta: {},
			component: () => import('@/views/principal/achievement/audit')
		}, {
			path: 'edit',
			name: 'PrincipalAchievementEdit',
			meta: {
				title: '成果修改'
			},
			component: () => import('@/views/principal/achievement/edit')
		}, {
			path: 'detail',
			name: 'PrincipalAchievementDetail',
			meta: {},
			component: () => import('@/views/principal/achievement/detail')
		}]
	}, {
		path: 'schedule',
		name: 'PrincipalSchedule',
		redirect: 'schedule/list',
		component: commonLayout,
		children: [{
			path: 'list',
			name: 'PrincipalScheduleList',
			meta: {
				title: '实验安排'
			},
			component: () => import('@/views/principal/schedule/index')
		}, {
			path: 'detail',
			name: 'PrincipalScheduleDetail',
			meta: {},
			component: () => import('@/views/principal/schedule/detail')
		}]
	}, {
		path: 'scheduleAudit',
		name: 'PrincipalScheduleaudit',
		redirect: 'scheduleAudit/list',
		component: commonLayout,
		children: [{
			path: 'list',
			name: 'PrincipalScheduleAuditList',
			meta: {
				title: '实验安排审核'
			},
			component: () => import('@/views/principal/scheduleAudit/index')
		}, {
			path: 'detail',
			name: 'PrincipalScheduleAuditDetail',
			meta: {},
			component: () => import('@/views/principal/scheduleAudit/detail')
		}, {
			path: 'audit',
			name: 'PrincipalScheduleAuditAudit',
			meta: {},
			component: () => import('@/views/principal/scheduleAudit/audit')
		}]
	}, {
		path: 'summary',
		name: 'PrincipalSummary',
		redirect: 'summary/list',
		component: commonLayout,
		children: [{
			path: 'list',
			name: 'PrincipalSummaryList',
			meta: {
				title: '实验小结'
			},
			component: () => import('@/views/principal/summary/index')
		}, {
			path: 'detail',
			name: 'PrincipalSummaryForm',
			meta: {
				title: '实验详情'
			},
			component: () => import('@/views/principal/summary/detail')
		}]
	}]
}]